// 1、修改密码
$(".resetpwd").on("submit", function () {
  var userdata = $(this).serialize();
  $.ajax({
    type: "put",
    url: "/users/password",
    data: userdata,
    success: (res) => {
      console.log(res);
      location.href = "login.html";
    },
    error: (err) => {
      console.log(err.responseText);
    },
  });
  return false;
});
